
package at.fhj.ase.crypto.common.ex;

/**
 * Exception to be thrown e.g. if a constructor within a signleton class/pattern is called twice due to any programming error or maybe also an hacker attack
 * with reflection.<br>
 * note that this exception derives from {@link IllegalStateException} which is a {@link RuntimeException}.<br>
 * Therefore exceptions like these don't have to be caught as they are not checked by compiler (no checked exception).
 * 
 * @author sfe | www.fh-joanneum.at | Practical Aspects of Cryptography
 */
public class AlreadyInstantiatedException extends IllegalStateException {
  private static final long serialVersionUID = -1369815901633312870L;

  public AlreadyInstantiatedException() {
    super();
  }

  public AlreadyInstantiatedException(String message, Throwable cause) {
    super(message, cause);
  }

  public AlreadyInstantiatedException(String s) {
    super(s);
  }

  public AlreadyInstantiatedException(Throwable cause) {
    super(cause);
  }
}
